import type { Data } from '@/types/global'
import { http } from '@/utils/http'
/**
 * 赞助商认证
 * @param code 邀请码
 * @returns
 */
export const putUserAutenticationSponsor = (code: string) => {
  return http<Data<number>>({
    url: '/user/authentication/sponsor',
    method: 'PUT',
    data: {
      code,
    },
  })
}
/**
 * 学生认证
 * @param data
 * @returns
 */
export const putUserAutenticationStudent = (data: { schoolId: string; studentId: string }) => {
  return http<Data<number>>({
    url: '/user/authentication/student',
    method: 'PUT',
    data,
  })
}
